/*--------------------------------------------------------------------------.DA*
  Name:           KFXRAM.h
  Description:    functions for RAM
  Version: 07.12.01 /AL                             Copyrights (c) 1998, STW
  --------------------------------------------------------------------------.DE*/
#ifndef H_KFXRAM
#define H_KFXRAM

#ifdef __cplusplus
extern "C" {
#endif

   typedef void (*tKFXAccessErrorFunction)(uint16 ou16_ListIndex,uint16 ou16_VariableIndex,sint16 os16_Error,uint8 ou8_Access);

   extern sint16 KFX_init_access_check(uint8 ou8_OnOff, tKFXAccessErrorFunction opr_CallBack);

   extern uint8  KFX_read_byte (uint16 ou16_ListIndex, uint16 ou16_VariableIndex);
   extern sint8  KFX_read_char (uint16 ou16_ListIndex, uint16 ou16_VariableIndex);
   extern uint16 KFX_read_word (uint16 ou16_ListIndex, uint16 ou16_VariableIndex);
   extern sint16 KFX_read_int  (uint16 ou16_ListIndex, uint16 ou16_VariableIndex);
   extern uint32 KFX_read_dword(uint16 ou16_ListIndex, uint16 ou16_VariableIndex);
   extern sint32 KFX_read_long (uint16 ou16_ListIndex, uint16 ou16_VariableIndex);

   extern void KFX_write_byte (uint16 ou16_ListIndex, uint16 ou16_VariableIndex, uint8  ou8_Value);
   extern void KFX_write_char (uint16 ou16_ListIndex, uint16 ou16_VariableIndex, sint8  os8_Value);
   extern void KFX_write_word (uint16 ou16_ListIndex, uint16 ou16_VariableIndex, uint16 ou16_Value);
   extern void KFX_write_int  (uint16 ou16_ListIndex, uint16 ou16_VariableIndex, sint16 os16_Value);
   extern void KFX_write_dword(uint16 ou16_ListIndex, uint16 ou16_VariableIndex, uint32 ou32_Value);
   extern void KFX_write_long (uint16 ou16_ListIndex, uint16 ou16_VariableIndex, sint32 os32_Value);

   // Defines fuer Parameter bAccess von tKFXAccessErrorFunction
   #define KFX_ACCESS_READ    0
   #define KFX_ACCESS_WRITE   1

#ifdef __cplusplus
}
#endif

#endif

